package com.jvtd.baseProject.di.component;


import android.app.Application;
import android.content.Context;

import com.jvtd.baseProject.data.DbManager;
import com.jvtd.baseProject.di.ApplicationContext;
import com.jvtd.baseProject.di.module.ApplicationModule;
import com.jvtd.baseProject.di.module.NetModule;
import com.jvtd.baseProject.di.module.UserModule;

import javax.inject.Singleton;

import dagger.Component;

/**
 * Created by Administrator on 2017/10/16.
 * application
 */
@Singleton
@Component(modules = {ApplicationModule.class, NetModule.class})
public interface ApplicationComponent
{
  void inject(Application mApplication);

  @ApplicationContext
  Context context();

  Application application();

  DbManager dbManager();

  UserComponent plus(UserModule userModule);
}
